package org.smart4j.framework.util;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Wangminze on 2017/3/25.
 * Description:
 */
public class MapBuilder extends HashMap {

    public static HashMap getInstance() {
        return new HashMap<String, Object>();
    }

    public MapBuilder put(String key, Object obj) {
        super.put(key, obj);
        return this;
    }

    public HashMap<String, Object> build() {
        return (HashMap) this;
    }

}
